<?php

namespace App\Console\Commands;

use App\Biz\VisitorReservesBiz;
use Exception;
use Illuminate\Console\Command;

class VisitorReserves extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'visitor:reserves';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = '访客预约';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     *
     * @param VisitorReservesBiz $visitorReservesBiz
     * @return void
     * @throws Exception
     */
    public function handle(VisitorReservesBiz $visitorReservesBiz): void
    {
        $visitorReservesBiz->visitorReserves();

        $this->info('访客预约完成');//打印信息
    }
}
